import psutil
# 更具任务管理器中的任务ID查询这个进程是否存在
pid = 18444
try:
    proc=psutil.Process(pid)
    print(f"Process Name:{proc.name()}")
    print(f"Process username:{proc.username()}")
    print(f"Process CPU Usage:{proc.cpu_percent()}")
    print(f"Process Memory Usage:{proc.memory_percent()}")
except psutil.NoSuchProcess:
    print(f"Process with PID {pid} does not exist.")